import store from '../../store'
// 要把需要显示路由地址确定
const showPageFooterUri = ['/films', '/cinemas', '/news', '/center']

export default router => (to, from, next) => {
  // console.log(router);
  store.commit('setPageFooter', showPageFooterUri.some(item => to.path.startsWith(item)))
  next()
}
